﻿using System;
using System.Data;
using System.Collections.Generic;

using Com.Framework.Data;
using Com.Library.DB;

namespace Com.Library.DB.Manager
{
	internal class ManagerGetInfo : DBDataReader<DataEntity, ManagerEntity>
	{
		public ManagerGetInfo()
			: base(new ConnectionString(), "TSP_Manager_GetInfo")
		{
		}

		protected override void ParameterInitialize()
		{
			AddParameter("n4ManagerSN", SqlDbType.Int, 4, SqlDataInOut.InputOutput);
			AddParameter("strManagerID", SqlDbType.VarChar, 20, SqlDataInOut.InputOutput);
			AddParameter("strManagerPasshash", SqlDbType.VarChar, 200, SqlDataInOut.Output);
			AddParameter("strManagerName", SqlDbType.NVarChar, 100, SqlDataInOut.Output);
			AddParameter("isManager", SqlDbType.TinyInt, 1, SqlDataInOut.Output);
		}
	}
}